package lab02.Test03;

/**
 * Created by ASUS on 2017/10/12.
 */
public class Student {

    //  1.属性：计算机成绩、数学成绩、英语成绩
    float computerScore;
    float mathScore;
    float EnglishScore;

    //  2.行为：求总分、平均分、最高分、最低分，并且可以输出一个学生的完整信息。
    float sum(){
        return computerScore + mathScore + EnglishScore;
    }
   float average(){
        return (computerScore + mathScore + EnglishScore) / 3;

   }
  float max(){
       return 10;

  }
  float min(){
      return 10;
  }
  void printStudent(){
      System.out.println("计算机成绩：" + computerScore);
      System.out.println("数学成绩：" + mathScore);
      System.out.println("英语成绩：" + EnglishScore);
  }
}
